package com.kxxnzstdsw

import com.kxxnzstdsw.plugins.*
import io.ktor.server.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*

fun main() {
  embeddedServer(Netty, port = 8080, host = "0.0.0.0", module = Application::module)
    .start(wait = true)
}

fun Application.module() {
  configureKoin()
  configMigrate()
  configureQuartz()
  casbinConfig()
  configureSecurity()
  initApp()
  configureHTTP()
  configureSerialization()
  configureRouting()
  clientConfig()
  configureException()
}
